package com.itheima.web.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

// @WebFilter("/demo01")
public class FilterChain02 implements Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("第二个过滤器, 放行前的代码");
        chain.doFilter(req, resp);
        System.out.println("第二个过滤器, 放行后的代码");
    }

    public void init(FilterConfig config) throws ServletException {

    }
}
